package com.bawei.module_live.version2.mvi.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_live.version2.mvi.model.entity.LiveEntity2
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface LiveApi {
    @GET("/liveRoom/getLiveRoom")
    suspend fun getLive(): ResponseEntity<List<LiveEntity2>>

    @GET("/liveRoom/getLiveRoomUsers")
    suspend fun getLiveRoomUsers(@retrofit2.http.Query("roomId") roomId: String): com.bawei.lib_net.entity.ResponseEntity<com.bawei.module_live.version2.zhiboentity.ChatPeopleEntity>

//    @retrofit2.http.FormUrlEncoded
//    @retrofit2.http.POST("/liveRoom/enterLiveRoom")
//    suspend fun enterLiveRoom(@retrofit2.http.Field("roomId") roomId: String): com.bawei.lib_net.entity.ResponseEntity<Boolean>
//
//    @retrofit2.http.FormUrlEncoded
//    @retrofit2.http.POST("/liveRoom/exitLiveRoom")
//    suspend fun exitLiveRoom(@retrofit2.http.Field("roomId") roomId: String): com.bawei.lib_net.entity.ResponseEntity<Boolean>

    @POST("/liveRoom/joinRedPacket")
    suspend fun getredpacket(@Body params: Map<String, String> ):ResponseEntity<Boolean>
}